#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    int count = 0;
    int count2 = 0;
    int n = 0;
    int arr[10000];
    float sum = 0.0;
    scanf("%d", &n);
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
        if (arr[i] < 0)
        {
            count++;
        }
        if (arr[i] > 0)
        {
            count2++;
            sum += arr[i];
        }
    }
    if (count2 == 0)
    {
        printf("%d %.1f", count, 0.0);
    }
    else
    {
        printf("%d %.1f", count, sum / count2);

    }
    return 0;
}